package com.liu.pool_study.diyPool;

public class Text {
    public static void main(String[] args) {
        MyThreadPool myThreadPool = new MyThreadPool(2,4,20);
        for (int i = 0; i < 30; i++) {
            //创建任务
            MyTask myTask = new MyTask(i);
            myThreadPool.submin(myTask);
        }

    }
}
